package com.soft.utils;

public class StringUtils {
    public static String stransferDeliveryName(String delivery){
        if (delivery.contains("中通")){
            return "ZTSY";
        }else if (delivery.contains("圆通")){
            return "RTKD";
        }else if(delivery.contains("顺丰")){
            return "SFSY";
        }else {
            return "PTKD";
        }
    }
    public static String orderStatus(Integer status){
        if (status == 1){
            return "未支付";
        }else if (status == 2){
            return "已支付";
        }else if(status == 3){
            return "已取消";
        }else if(status == 4){
            return "已发货";
        }else if(status == 5){
            return "未发货";
        }else {
            return "状态错误";
        }
    }
}
